TEMPLATE = app
TARGET = qtxpost
DEPENDPATH = src src/qxmlrpc src/ui
INCLUDEPATH = src src/qxmlrpc src/ui
OBJECTS_DIR = var
MOC_DIR = var
UI_SOURCES_DIR = var
UI_HEADERS_DIR = var
RCC_DIR = var
unix {
# Prefix: base instalation directory
    isEmpty( PREFIX ):PREFIX = /usr/local
}

HEADERS += src/version.h \
	src/MainWindow.h \
	src/Server.h \
	src/ServerConfig.h \
	src/SaveFile.h \
	src/Communities.h \
	src/PostProgress.h \
	src/Preview.h \
	src/Config.h \
	src/SelectPost.h \
	src/FriendsManager.h \
	src/UsersList.h \
	src/GroupsTree.h \
	src/GroupTreeWidgetItem.h \
	src/EditGroup.h \
	src/EditUser.h \
	src/LabelMenu.h

HEADERS += src/qxmlrpc/clientprotocol.h \
	src/qxmlrpc/httpclient.h \
	src/qxmlrpc/httpsclient.h \
	src/qxmlrpc/xmlrpcconv.h \
	src/qxmlrpc/xmlrpcclient.h

FORMS += src/ui/MainWindow.ui \
	src/ui/Server.ui \
	src/ui/ServerConfig.ui \
	src/ui/Communities.ui \
	src/ui/PostProgress.ui \	
	src/ui/Config.ui \
	src/ui/SelectPost.ui \
	src/ui/FriendsManager.ui \
	src/ui/EditGroup.ui \
	src/ui/EditUser.ui \
        src/ui/ImageEntry.ui

SOURCES += src/main.cpp \
	src/MainWindow.cpp \
	src/Server.cpp \
	src/ServerLj.cpp \
	src/ServerConfig.cpp \
	src/SaveFile.cpp \
	src/Communities.cpp \
	src/PostProgress.cpp \
	src/Preview.cpp \
	src/Config.cpp \
	src/SelectPost.cpp \
	src/FriendsManager.cpp \
	src/UsersList.cpp \
	src/GroupsTree.cpp \
	src/GroupTreeWidgetItem.cpp \
	src/EditGroup.cpp \
	src/EditUser.cpp \
	src/LabelMenu.cpp

SOURCES += src/qxmlrpc/clientprotocol.cpp \
	src/qxmlrpc/httpclient.cpp \
	src/qxmlrpc/httpsclient.cpp \
	src/qxmlrpc/xmlrpcconv.cpp \
	src/qxmlrpc/xmlrpcclient.cpp 

QT = core gui network sql webkit xml
RESOURCES = qtxpost.qrc

target.path = $${PREFIX}/bin
INSTALLS = target
